package com.ruoyi.system.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.VendorInvoicingMapper;
import com.ruoyi.system.domain.VendorInvoicing;
import com.ruoyi.system.service.IVendorInvoicingService;

/**
 * 物资中心开票Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-18
 */
@Service
public class VendorInvoicingServiceImpl implements IVendorInvoicingService 
{
    @Autowired
    private VendorInvoicingMapper vendorInvoicingMapper;

    /**
     * 查询物资中心开票
     * 
     * @param id 物资中心开票主键
     * @return 物资中心开票
     */
    @Override
    public VendorInvoicing selectVendorInvoicingById(Long id)
    {
        return vendorInvoicingMapper.selectVendorInvoicingById(id);
    }

    /**
     * 查询物资中心开票列表
     * 
     * @param vendorInvoicing 物资中心开票
     * @return 物资中心开票
     */
    @Override
    public List<VendorInvoicing> selectVendorInvoicingList(VendorInvoicing vendorInvoicing)
    {
        return vendorInvoicingMapper.selectVendorInvoicingList(vendorInvoicing);
    }

    /**
     * 新增物资中心开票
     * 
     * @param vendorInvoicing 物资中心开票
     * @return 结果
     */
    @Override
    public int insertVendorInvoicing(VendorInvoicing vendorInvoicing)
    {
        return vendorInvoicingMapper.insertVendorInvoicing(vendorInvoicing);
    }

    /**
     * 修改物资中心开票
     * 
     * @param vendorInvoicing 物资中心开票
     * @return 结果
     */
    @Override
    public int updateVendorInvoicing(VendorInvoicing vendorInvoicing)
    {
        return vendorInvoicingMapper.updateVendorInvoicing(vendorInvoicing);
    }

    /**
     * 批量删除物资中心开票
     * 
     * @param ids 需要删除的物资中心开票主键
     * @return 结果
     */
    @Override
    public int deleteVendorInvoicingByIds(Long[] ids)
    {
        return vendorInvoicingMapper.deleteVendorInvoicingByIds(ids);
    }

    /**
     * 删除物资中心开票信息
     * 
     * @param id 物资中心开票主键
     * @return 结果
     */
    @Override
    public int deleteVendorInvoicingById(Long id)
    {
        return vendorInvoicingMapper.deleteVendorInvoicingById(id);
    }

    @Override
    public VendorInvoicing getVendorInvoicing(VendorInvoicing vendorInvoicing) {
        return vendorInvoicingMapper.getVendorInvoicing(vendorInvoicing);
    }

    @Override
    public List<Map<String, Object>> listGroupProvide(String provide, Boolean isNull) {
        return vendorInvoicingMapper.listGroupProvide(provide,isNull);
    }


}
